home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4142 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  793 b 

  1. Path: newspost1.alt.net!usenet
  2. From: walth@netcom.com (Walt Howard)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: What is wrong with this code? (BC45)
  5. Date: Sun, 28 Jan 1996 12:21:45 GMT
  6. Organization: AltNet - Affordable Usenet Access - http://www.alt.net
  7. Message-ID: <4efpp3$elb@tofu.alt.net>
  8. References: <yMOCxg2yqvDD083yn@iaccess.za>
  9. Reply-To: walth@netcom.com
  10. X-Newsreader: Forte Agent .99c/32.126
  11.  
  12. On 27 Jan 1996 13:08:15 +0200, vincer@iaccess.za (Vince Risi) wrote:
  13.  
  14. >Why would I get an illegal initialization from this code?
  15. >
  16. >typedef char * pchar;
  17. >pchar Fred = "This is a default value";
  18. >pchar Mark = Fred;    // <------ ????
  19. >
  20. >Is this a BC45 bug?
  21. >
  22. >Vince
  23. >=====
  24.  
  25. Did your file have a .c extension instead of a .cpp? If it compiled as
  26. a C file, it would be an error on many compilers.
  27.  
  28.  
  29.